package data.nanjing.expo.services;


import data.nanjing.expo.models.dao.WebSourceManageDao;
import data.nanjing.expo.models.domain.WebSourceManage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WebSourceManageService {
    @Autowired
    private WebSourceManageDao webSourceManageDao;

    public List<WebSourceManage> getWebSourceManage(String classify){
        return webSourceManageDao.getWebSourceManageByClassify(classify);
    }

    public int addWebSourceManage(WebSourceManage webSourceManage){
        return webSourceManageDao.addWebSourceManage(webSourceManage);
    }
}
